/**
 * @Author YuanYuan
 * @Date 2022/9/9
 * @Time 14:39
 */

public class TestDemo {
    public static class Count {
        public synchronized void increase() {
            synchronized (this) {
                ;
            }
        }
    }

    public static void main(String[] args) {
        Count counter = new Count();
        Thread thread = new Thread(()-> {
            counter.increase();
        });
    }
}
